package xin.infinite.service;

import org.apache.dubbo.config.annotation.Service;

import javax.annotation.Resource;

@Service
public class UserServiceDubboImpl implements UserServiceDubbo{

    @Resource
    private UserService userService;

    @Override
    public boolean register(String email, String password, String code) {
        return userService.register(email,password,code);
    }

    @Override
    public boolean isRegister(String email) {
        return userService.isRegister(email);
    }

    @Override
    public String getEmail(String token) {
        return userService.getEmail(token);
    }
}
